//
//  NSMutableDictionary+Category.m
//  OnionHome
//
//  Created by fengjie on 2019/9/21.
//  Copyright © 2019 FengJie. All rights reserved.
//

#import "NSMutableDictionary+Category.h"


@implementation NSMutableDictionary (Category)

/*
 *【利用链式编程去实现富文本属性的赋值】
 * @param headerUrl    字体 & 颜色
 */
-(NSMutableDictionary *(^)(CGFloat))Font
{
    return ^id(CGFloat font)
    {
        [self setValue:SYSTEMFONT(font) forKey:NSFontAttributeName];
        return self;
    };
}
-(NSMutableDictionary *(^)(UIColor *))Color
{
    return ^id(UIColor * color)
    {
        [self setValue:color forKey:NSForegroundColorAttributeName];
        return self;
    };
}
@end
